@*Hdip Project 2013-14, Student Name:- Chris Pembroke,  Student Number:- x00115839*@
@model Exercise1Project.Models.BikeService
@{
    ViewBag.bike_make = TempData["bike_make"].ToString();
    TempData.Keep("bike_make");
    ViewBag.bike_model = TempData["bike_model"].ToString();
    TempData.Keep("bike_model");
    ViewBag.bike_color = TempData["bike_color"].ToString();
    TempData.Keep("bike_color");
    int bikeId = ViewBag.bike_id = Int32.Parse(TempData["bike_id"].ToString());
    TempData.Keep("bike_id");
}


<div class="viewContainerDiv2">

    <h2>PayPal</h2>
    <h3>@ViewBag.bike_make @ViewBag.bike_model  @ViewBag.bike_color</h3>
    <br/>
    <p>
        @Html.ActionLink("Back to Service List", "ServiceList", new { id = bikeId })
    </p>         

            @Html.HiddenFor(model => model.TotalPrice)
       
        <div class="centerDivs">

            <dl class="dl-horizontal">
                <dt>
                    @Html.DisplayNameFor(model => model.SelectedItems)
                </dt>

                <dd>
                    @Html.DisplayFor(model => model.SelectedItems)
                </dd>

                <dt>
                    @Html.DisplayNameFor(model => model.PartsCost)
                </dt>

                <dd id="tableDDcolorBlue">
                    @Html.DisplayFor(model => model.PartsCost)
                </dd>

                <dt>
                    @Html.DisplayNameFor(model => model.LabourCost)
                </dt>

                <dd id="tableDDcolorBlue">
                    @Html.DisplayFor(model => model.LabourCost)
                </dd>

                <dt>
                    @Html.DisplayNameFor(model => model.TotalPrice)
                </dt>

                <dd id="tableDDcolorRed">
                    @Html.DisplayFor(model => model.TotalPrice, new {@Size= "13"} )
                </dd>
                <dt>
                    @Html.DisplayNameFor(model => model.StatusBikeInShop)
                </dt>

                <dd>
                    @Html.DisplayFor(model => model.StatusBikeInShop)
                </dd>

                <dt>
                    @Html.DisplayNameFor(model => model.StatusService)
                </dt>

                <dd>
                    @Html.DisplayFor(model => model.StatusService)
                </dd>

            </dl>

        </div>
        <div class="centerDivs">

            <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
                <input type="hidden" name="cmd" value="_xclick">
                <input type="hidden" name="business" value="chrispembroke@eircom.net">
                <input type="hidden" name="lc" value="IE">
                <input type="hidden" name="item_name" value="Chris's Book Bike Service">
                <input type="hidden" name="item_number" value="x9000">
                <input type="hidden" id="amount" name="amount" value="0.0">
                <input type="hidden" name="currency_code" value="EUR">
                <input type="hidden" name="button_subtype" value="services">
                <input type="hidden" name="tax_rate" value="0.000">
                <input type="hidden" name="shipping" value="0.00">
                <input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">
                <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
                <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
            </form>
        </div>
    </div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    <link href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.min.css" rel="stylesheet" type="text/css" />
    <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
    <script src="http://code.jquery.com/ui/1.10.4/jquery-ui.min.js"></script>
    <link rel="stylesheet" href="@Url.Content("~/Content/customised.css")" />
    <script>
        var amount;
        var total;
        function init() {
            var total = document.getElementById("TotalPrice");
            var amount = document.getElementById("amount");
            amount.value = total.value;
        }
        document.addEventListener("DOMContentLoaded", init, false);
    </script>
}







